#define _CRT_SECURE_NO_WARNINGS 1

#include <stdio.h>
int main() {

    int n;

    scanf("%d", &n);

    int sum = n / 12, time = 0;

    time += sum * 4 + 2;

    printf("%d", time);

    return 0;

}